const webpack = require('webpack')
const merge = require('webpack-merge')
const common = require('./webpack.common')
const path = require('path')

module.exports = merge(common,{
    mode:'development',
    devtool: 'cheap-eval-module-source-map',
    devServer:{
        hot:true,
        contentBase:path.join(__dirname, "dist"),
        port:8080,
        open:true
    },
    plugins:[
        new webpack.HotModuleReplacementPlugin()
    ]
})